home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 59338 / 59338.xpi / chrome / global / richlistbox.css < prev    next >
Cascading Style Sheet File  |  2010-01-26  |  4KB  |  107 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Richlistbox CSS.
  15.  *
  16.  * The Initial Developer of the Original Code is
  17.  * IBM Corporation.
  18.  * Portions created by the Initial Developer are Copyright (C) 2005
  19.  * the Initial Developer. All Rights Reserved.
  20.  *
  21.  * Contributor(s):
  22.  *   Doron Rosenberg <doronr@us.ibm.com> (original author)
  23.  *   Simon B∩┐╜nzli <zeniko@gmail.com>
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  40.  
  41. richlistbox {
  42. -moz-appearance: none !important;
  43. margin: 2px 4px;
  44. border: 2px solid !important;
  45. -moz-border-radius: 5px;
  46. -moz-border-top-colors:#969595 #c1c0bf !important;
  47. -moz-border-bottom-colors:#d6d5d4 #e0dfde !important;
  48. -moz-border-left-colors:#bbbab9 #dcdbda !important;
  49. -moz-border-right-colors:#bcbbba #dcdbda !important;
  50. background-color: #ffffff;
  51. color: #000000;
  52. }
  53.  
  54. richlistbox:focus {
  55. -moz-border-top-colors:#2f75c5 #789bc3 !important;
  56. -moz-border-bottom-colors:#3278c7 #88abd3 !important;
  57. -moz-border-left-colors:#3177c6 #86a8d1 !important;
  58. -moz-border-right-colors:#3278c7 #86a8d1 !important;
  59. }
  60.  
  61.  
  62. richlistbox[disabled="true"] {
  63.   color: GrayText;
  64. }
  65.  
  66. richlistitem{
  67. color: #000000 !important;
  68. border: 2px solid transparent;
  69. -moz-border-radius: 3px;
  70. }
  71.  
  72. richlistitem:hover {
  73. background: -moz-linear-gradient(top, #deeefe, #ccdae7);
  74. /*background-color:#dae8f6;
  75. background-image: url("chrome://browser/skin/icons/treeitem_hover.png");
  76. background-repeat:repeat-x;*/
  77. -moz-border-top-colors:#cce1f6 #e7f3fe !important;
  78. -moz-border-bottom-colors:#cadef2 #e3eef8 !important;
  79. -moz-border-left-colors:#cbe0f4 #e5f1fb !important;
  80. -moz-border-right-colors:#cadff3 #e5f0fb !important;
  81. }
  82.  
  83. richlistitem[selected="true"] {
  84. background: -moz-linear-gradient(top, #68b4fd, #5190cf);
  85. /*background-color:#4790d7;
  86. background-image: url("chrome://browser/skin/icons/treeitem_sel.png");
  87. background-repeat:repeat-x;*/
  88. -moz-border-top-colors:#418bd4 #89c3fd !important;
  89. -moz-border-bottom-colors:#418bd4 #71a8df !important;
  90. -moz-border-left-colors:#418bd4 #7fb9f1 !important;
  91. -moz-border-right-colors:#418bd4 #7ab3ea !important;
  92. color:#ffffff !important;
  93. }
  94.  
  95. richlistbox:focus > richlistitem[selected="true"] {
  96.   color: #000;
  97. }
  98.  
  99. richlistbox[seltype="multiple"]:focus > richlistitem[current="true"] {
  100. /*  outline: 1px dotted #DCDCDC;
  101.   -moz-outline-offset: -1px;*/
  102. }
  103.  
  104. richlistbox[seltype="multiple"]:focus > richlistitem[current="true"][selected="true"] {
  105. /*   outline: 1px dotted #707070; */
  106. }
  107.